projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d63f0e
)
(window_scroll_pixel_based): Signal "Beginning of buffer" when scroll-down
author
Eli Zaretskii
<eliz@gnu.org>
Fri, 9 Jun 2006 09:04:34 +0000
(09:04 +0000)
committer
Eli Zaretskii
<eliz@gnu.org>
Fri, 9 Jun 2006 09:04:34 +0000
(09:04 +0000)
at the beginning of an empty buffer.
src/window.c
patch
|
blob
|
history
diff --git
a/src/window.c
b/src/window.c
index acb4c5cfbdde68cb0718fc969b56512d23a29530..e0ea9beb211319b4892391a767d5721a6286deac 100644
(file)
--- a/
src/window.c
+++ b/
src/window.c
@@
-4895,6
+4895,8
@@
window_scroll_pixel_based (window, n, whole, noerror)
}
else if (noerror)
return;
+ else if (n < 0) /* could happen with empty buffers */
+ Fsignal (Qbeginning_of_buffer, Qnil);
else
Fsignal (Qend_of_buffer, Qnil);
}